package com.ruoyi.system.basicInformation.mapper;

import com.ruoyi.system.basicInformation.bo.TCarQueryBo;
import com.ruoyi.system.basicInformation.domain.TCar;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.basicInformation.vo.TCarVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 车辆信息Mapper接口
 *
 * @author ruoyi
 * @date 2021-05-18
 */
public interface TCarMapper extends BaseMapper<TCar> {
    /**
     * 查询记录
     * @param query
     * @return
     */
    List<TCarVo> selectDTO(@Param("query") TCarQueryBo query);

    List<TCarVo> listCarCurrentPoint(@Param("query") TCarQueryBo query);

    /*
    * 判断是否有快到期的车辆
    * */
    int checkCarLimit();

    public TCarVo selectById(Long id);
}
